home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / SRC-GLU / gluP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-02  |  1.9 KB  |  89 lines

  1. /* $Id: gluP.h,v 1.3 1997/08/01 22:25:27 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  2.4
  6.  * Copyright (C) 1995-1997  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * $Log: gluP.h,v $
  26.  * Revision 1.3  1997/08/01 22:25:27  brianp
  27.  * check for Cygnus Win32 (Stephen Rehel)
  28.  *
  29.  * Revision 1.2  1997/05/27 02:59:46  brianp
  30.  * added defines for APIENTRY and CALLBACK if not compiling on Win32
  31.  *
  32.  * Revision 1.1  1996/09/27 01:19:39  brianp
  33.  * Initial revision
  34.  *
  35.  */
  36.  
  37.  
  38.  
  39. /*
  40.  * This file allows the GLU code to be compiled either with the Mesa
  41.  * headers or with the real OpenGL headers.
  42.  */
  43.  
  44.  
  45. #ifndef GLUP_H
  46. #define GLUP_H
  47.  
  48.  
  49. #include "GL/gl.h"
  50. #include "GL/glu.h"
  51.  
  52.  
  53. /* define APIENTRY */
  54. #ifdef __CYGWIN32__
  55. #include <windows.h>
  56. #endif
  57.  
  58. #ifndef __WIN32__
  59. #define APIENTRY
  60. #define CALLBACK
  61. #endif
  62.  
  63.  
  64. #ifndef MESA
  65.    /* If we're using the real OpenGL header files... */
  66. #  define GLU_TESS_ERROR9    100159
  67. #endif
  68.  
  69.  
  70. #define GLU_NO_ERROR        GL_NO_ERROR
  71.  
  72.  
  73. /* for Sun: */
  74. #ifdef SUNOS4
  75. #define MEMCPY( DST, SRC, BYTES) \
  76.     memcpy( (char *) (DST), (char *) (SRC), (int) (BYTES) )
  77. #else
  78. #define MEMCPY( DST, SRC, BYTES) \
  79.     memcpy( (void *) (DST), (void *) (SRC), (size_t) (BYTES) )
  80. #endif
  81.  
  82.  
  83. #ifndef NULL
  84. #  define NULL 0
  85. #endif
  86.  
  87.  
  88. #endif
  89.